﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace NUnitForVSTS.NUnitTest.UT
{
    /// <summary>
    /// Summary description for TestLoaderExecutionHandlerTest
    /// </summary>
    [TestClass]
    public class TestLoaderExecutionHandlerTest
    {
        /// <summary>
        /// Tests the loader execution event dispatcher_ dispose without cleanup.
        /// Should not crash
        /// </summary>
        [TestMethod]
        public void TestLoaderExecutionHandler_DisposeWithoutCleanup()
        {
            using(TestLoaderExecutionHandler handler = new TestLoaderExecutionHandler(Guid.NewGuid()))
            {
            }
        }

        /// <summary>
        /// Tests the loader execution event dispatcher_ dispose with cleanup.
        /// </summary>
        /// Should not crash
        [TestMethod]
        public void TestLoaderExecutionHandler_DisposeWithCleanup()
        {
            using (TestLoaderExecutionHandler handler = new TestLoaderExecutionHandler(Guid.NewGuid()))
            {
                handler.Cleanup();
            }
        }
    }
}
